#import "AppDelegate.h"
#import "GeneratedPluginRegistrant.h"
#import <Bugly/Bugly.h>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  [GeneratedPluginRegistrant registerWithRegistry:self];
  // Override point for customization after application launch.
    
    
//    // 获取 info.plist 配置文件对应的 字典对象
//    NSDictionary *info = [NSBundle mainBundle].infoDictionary;
//    NSString* appId = info[@"bugly.appId"];
//    BuglyConfig * config = [[BuglyConfig alloc] init];
//    [Bugly startWithAppId:appId developmentDevice:DEBUG config:config];
    BuglyConfig * config = [[BuglyConfig alloc] init];
    config.blockMonitorEnable = YES;
    config.blockMonitorTimeout = 2;
    config.consolelogEnable = YES;
    config.reportLogLevel = BuglyLogLevelWarn;
    
    [Bugly startWithAppId:nil config:config];
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

@end
